import request from '@/config/axios'

export interface Model {
  id: string
  logType: number
  traceId: string
  userId: string
  userType: number
  username: string
  userIp: string
  userAgent: string
  createTime: Date
}

// 查询登录日志列表
export const getPage = (params: PageParam) => {
  return request.get({
    url: import.meta.env.VITE_BASE_ROLE + '/userCenter/login-log/page.json',
    params
  })
}

// 导 出登录日志
export const exportLoginLog = (params) => {
  return request.download({
    url: import.meta.env.VITE_BASE_ROLE + '/userCenter/login-log/export',
    params
  })
}
